package com.hua.api.core.util.tree;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class TreeNode<T> {

    public TreeNode() {

    }

    public TreeNode(String code, String pcode, T data) {
        this.code = code;
        this.pcode = pcode;
        this.data = data;
    }

    private String code;//code

    private String pcode;//pcode

    private T data;

    public List<TreeNode<T>> list=new ArrayList<>();
}
